package com.kerio;

/**
 * Created by hetao on 2018/3/20.
 */
public enum TravelStyle {
    BY_BIKE(new BikeStrategy()),
    BY_CAR(new CarStategy()),
    BY_TRAIN(new TrainStategy()),
    BY_PLANE(new AirPlaneStrategy());

    private Traveling traveling;
    TravelStyle(Traveling traveling){
        this.traveling=traveling;
    }

    Traveling get(){
        return this.traveling;
    }
}
